package com.quanquan.user.entity;

import lombok.Data;
import org.hibernate.annotations.Type;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 功能描述:积分规则
 *
 * @ClassName: integralRule
 * @Author: xiaoqianh丶
 * @Date: 2019-03-11 14:16
 * @Version: V1.0
 */
@Data
@Entity
@Table(name = "oo_integral_rule")
public class IntegralRule implements Serializable {


     /** 主键
     */
    @Id
    @Column(name = "id", unique = true, length = 64)
    private String id;


    /**
     * 积分规则内容
     */
    @Column(name = "rule_content", columnDefinition = "TEXT")
    private String ruleContent;

    /**
     * 创建时间
     */
    @Column(name = "create_time", nullable = false, length = 32)
    private String createTime;

    /**
     * 最新修改时间
     */
    @Column(name = "update_time", nullable = false, length = 32)
    private String updateTime;

    /**
     * 数据是否显示
     */
    @Column(name = "status_show", columnDefinition = "TINYINT default 0",nullable = false)
    private Integer show;

    /**
     * 数据是否移除
     */
    @Column(name = "status_remove", columnDefinition = "TINYINT default 0",nullable = false)
    private Integer remove;


    /**
     * 积分翻倍（会员等级）
     */
    @Type(type = "yes_no")
    @Column(name = "status_member_level_double")
    private Boolean memberLevelDouble;

    /**
     * 积分翻倍（会员生日）
     */
    @Type(type = "yes_no")
    @Column(name = "status_member_birthday_double")
    private Boolean memberBirthDayDouble;

    /**
     * 会员生日翻几倍
     **/
    @Column(name = "birthday_double", nullable = false, length = 32)
    private String birthDayDouble;


    /**
     * 积分翻倍（时间段）
     */
    @Type(type = "yes_no")
    @Column(name = "status_time_double")
    private Boolean timeDouble;

    /**
     * 开始时间
     */
    @Column(name = "start_time",  length = 32)
    private String startTime;

    /**
     * 结束时间
     **/
    @Column(name = "end_time", length = 32)
    private String endTime;


    /**
     * 时间段积分翻倍系数
     */
    @Column(name = "time_double_num", length = 32)
    private String timeDoubleNum;

    /**
     * 是否开启业态翻倍
     */
    @Type(type = "yes_no")
    @Column(name = "status_store_commercial")
    private Boolean storeCommercial;

    @Column(name = "commercial_double_num", columnDefinition = "TINYINT default 0")
    private Integer doubleNum;

}
